﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BLL;

namespace CAMarkSHello
{
    class Program
    {
        static void Main(string[] args)
        {


            Person _john = new Person();
            _john.Age = 21;
            _john.FirstName = "John";
            _john.LastName = "Rhodes";

            Person _sally = new Person();
            _sally.Age = 34;
            _sally.FirstName = "Mary";
            _sally.LastName = "Watson";

            List<Person> _pl = new List<Person>();
            _pl.Add(_john);
            _pl.Add(_sally);


            PersonCollection _pc = new PersonCollection(_pl);


            foreach (var item in _pc._personcollection) { 
            
                Console.WriteLine("Firstname: {0} Lastname: {1}", item.FirstName, item.LastName);
                Console.ReadKey();
            }


        
        }
    }
}
